package com.bbx.api.gclient;


import com.gim.listener;

import android.content.Context;
import android.content.Intent;

/**
 * 监听SDK返回来的结果
 */
public class GMsgListener implements listener{
	private Context mContext;
	public GMsgListener(Context context){
		mContext = context;
	}
	
	/**
	 * 监听SDK返回来的结果
	 */
	public void handleMessage(String msg){
    	//发送广播
		Intent intent = new Intent();
		intent.setAction(GMsgBroadcastReceiver.TAG);
		intent.putExtra("msg", msg);
		mContext.sendBroadcast(intent);
   }
}